package com.fourcitizens.playas

import grails.converters.JSON 

class TownRestController {
	
	def townService
	def provinceService

	def list = { 
			/*
			def country = Country.findByName(params.countryName)
			def province = provinceService.getProvinceInCountry(country, params.provinceName)
			def towns = province.towns
			*/
			
			render "Not yet implemented"
	}
	def show = { 
			/*
			def country = Country.findByName(params.countryName)
			def province = provinceService.getProvinceInCountry(country, params.provinceName)
			
			def town = townService.getTownInProvince(province, params.townName)
			
			render town as JSON
			*/
		
			render "Not yet implemented"
	}
}
